﻿using ProjectFootball.MVC.Foundation;
using ProjectFootball.MVC.Foundation.ResourceLibrary;
using System;
using System.ComponentModel.DataAnnotations;

namespace ProjectFootball.MVC.Areas.CompetitionArea.Models
{
    public class CompetitionDataModel : BaseDataModel
    {
        public CompetitionDataModel()
        {
            ActiveFrom = DateTime.Today;
            ActiveTo = _DateTime.HighDate;
        }

        public Guid CompetitionGuid { get; set; }
        public Guid ApprovalGuid { get; set; }

        [Display(Name = "Competition name")]
        [Required]
        public string CompetitionName { get; set; }

        [Display(Name = "Competition type")]
        public CompetitionType CompetitionType { get; set; }

        [Display(Name = "Location type")]
        public LocationType LocationType { get; set; }

        [UIHint("DropDown/Country")]
        [Display(Name = "Country")]
        public Guid? CountryGuid { get; set; }

        [Display(Name = "Active from")]
        [DataType(DataType.Date)]
        public DateTime ActiveFrom { get; set; }

        [Display(Name = "Active to")]
        [DataType(DataType.Date)]
        public DateTime ActiveTo { get; set; }
    }
}